package com.project.service;

import com.project.entity.Cv;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 13:36
 * @param:
 * @return:
 */
public interface CvService {
    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 添加一个简历
     *
     * @param cv
     * @return
     */
    int addOne(Cv cv);

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 根据id删除一个简历
     *
     * @param id
     * @return
     */
    boolean removeOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 根据id修改一个简历
     *
     * @param cv
     * @return
     */
    int modifyOneById(Cv cv);

    /**
     * author: WheelChen
     * date: 2017/9/5
     * function:
     *
     * @param id
     * @return
     */
    Cv findOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/7
     * function: 根据条件模糊查找简历
     *
     * @param cv
     * @return
     */
    List<Cv> findByCondition(Cv cv);

    /**
     * author: WheelChen
     * date: 2017/9/27
     * function: 根据学生id批量查找简历
     *
     * @param stid
     * @return
     */
    List<Cv> findBatchByStid(Integer stid);

    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 根据用户表idList批量查找简历
     *
     * @param stidList
     * @return
     */
    List<Cv> findBatchByStidList(List stidList);

    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 根据学生表id批量删除简历
     *
     * @param stid
     * @return
     */
    boolean removeBatchByStid(List stid);
}
